class SendMsgModel {
  String fromWho;
  String toWho;
  String message;

  SendMsgModel({
    required this.fromWho,
    required this.toWho,
    required this.message,
  });

  factory SendMsgModel.fromJson(Map<String, dynamic> json) {
    return SendMsgModel(
        fromWho: json['fromWho'],
        toWho: json['toWho'],
        message: json['message']);
  }

  Map<String, dynamic> toJson() => {
        'fromWho': fromWho,
        'toWho': toWho,
        'message': message,
      };
}
